package com.ler.yrmall.order.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ler.yrmall.order.entity.OrderItemEntity;
import com.ler.yrmall.order.service.OrderItemService;
import com.ler.yrmall.order.mapper.OrderItemMapper;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @author leron
 */
@Service
public class OrderItemServiceImpl extends ServiceImpl<OrderItemMapper, OrderItemEntity> implements OrderItemService {


    @Override
    public List<OrderItemEntity> listByOrderId(Long orderId) {
        return this.list(Wrappers.<OrderItemEntity>lambdaQuery()
                .eq(OrderItemEntity::getOrderId,orderId));
    }
}